module model.Offline;

import hunt.entity;

@Table("im_offline_msg")
class Offline  : Model{

  mixin MakeModel;

  @PrimaryKey
  @AutoIncrement
  uint id;
  @Column("chat_id")
  string chatId;
  @Column("from_id")
  string fromId;
  @Column("to_id")
  string toId;
  string message;

  uint duration;

  @Column("create_time")
  long createTime;

  uint type;

  @Column("oss_object")
  string ossObjectName;

  @Column("file_size")
  ulong fileSize;

  @Column("message_id")
  string messageId;

  @Column("binary_data")
  string binaryData;

  @Column("backoff")
  uint   backoff;
}

